public class Base {

    {
        System.out.println("父类非静态方法");
    }

    static {
        System.out.println("父类静态方法");
    }

    public Base() {
        System.out.println("父类构造方法");
    }
}

class Son extends Base {
    public static void main(String[] args) {
        new Son();
    }

    {
        System.out.println("子类非静态方法");
    }

    static {
        System.out.println("子类静态方法");
    }

    public Son() {
        System.out.println("子类构造方法");
    }
}


